import React from 'react';
import {View} from 'react-native';
import {Tabs} from "@ant-design/react-native";
import TeamDetailPage from "../common/Team/TeamDetailPage";

export default class TeamPage extends React.Component {
    render() {
        const tabs = [
            { title: '我创建的' },
            { title: '我参与的' },
        ];
        const style = {
            backgroundColor: '#fff',
            flex:1,
        };
        return (
            <View style={{flex: 1}}>
                <Tabs tabs={tabs}>
                    <View style={style}>
                        <TeamDetailPage/>
                    </View>
                    <View style={style}>
                        <TeamDetailPage/>
                    </View>
                </Tabs>
            </View>
        );
    }
}
